package com.ruoyi.project.system.commodity.controller;

import com.ruoyi.framework.web.controller.BaseController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/system/commodity")
public class CommodityController extends BaseController {

    private String prefix = "system/commodity";

    @RequiresPermissions("system:commodity:addCommodity:view")
    @GetMapping("/addCommodity")
    public String addSort()
    {
        return prefix + "/addCommodity";
    }

    @RequiresPermissions("system:commodityOnShelf:view")
    @GetMapping("/commodityOnShelf")
    public String commodityOnShelf()
    {
        return prefix + "/commodityOnShelf";
    }

    @RequiresPermissions("system:commodity:chooseSort:view")
    @GetMapping("/chooseSort")
    public String chooseSort()
    {
        return prefix + "/chooseSort";
    }

    @RequiresPermissions("system:commodity:offShelfCommodity:view")
    @GetMapping("/offShelfCommodity")
    public String offShelfCommodity()
    {
        return prefix + "/offShelfCommodity";
    }

    @RequiresPermissions("system:commodity:classificationManag:view")
    @GetMapping("/classificationManag")
    public String classificationManag()
    {
        return prefix + "/classificationManag";
    }


    @RequiresPermissions("system:commodity:addClassification:view")
    @GetMapping("/addClassification")
    public String addClassification()
    {
        return prefix + "/addClassification";
    }


    @RequiresPermissions("system:commodity:specificationManag:view")
    @GetMapping("/specificationManag")
    public String specificationManag()
    {
        return prefix + "/specificationManag";
    }

    @RequiresPermissions("system:commodity:addSpecification:view")
    @GetMapping("/addSpecification")
    public String addSpecification()
    {
        return prefix + "/addSpecification";
    }

    @RequiresPermissions("system:commodity:brandManag:view")
    @GetMapping("/brandManag")
    public String brandManag()
    {
        return prefix + "/brandManag";
    }

    @RequiresPermissions("system:commodity:addBrand:view")
    @GetMapping("/addBrand")
    public String addBrand()
    {
        return prefix + "/addBrand";
    }



}
